package com.shaozi.nc.mq.substance;

import java.lang.reflect.Type;
import java.util.List;

import org.json.JSONObject;

import com.google.gson.reflect.TypeToken;
import com.shaozi.data.mq.business.base.SourceTypeConsts.Other;
import com.shaozi.data.mq.business.bean.MQExchangeRuleBean;
import com.shaozi.data.mq.business.bean.MQPushItem;
import com.shaozi.data.mq.business.bus.substance.BasePushSubstanceHandler;
import com.shaozi.lib.throwable.SzException;
import com.shaozi.nc.mq.bean.badge.BadgeBean;


/**
 * 其他模块
 * 
 * @author brenx
 *
 */
public class OtherPushSubstance extends BasePushSubstanceHandler {

	public OtherPushSubstance() {

	}

	@Override
	protected void onExchangeBiz(MQExchangeRuleBean pushData, MQPushItem pushItem, JSONObject jsonObj) throws SzException {
		switch (pushItem.getSourceType()) {
		case Other.Badge:
			Type type = new TypeToken<List<BadgeBean>>(){}.getType();
			exchangeListBiz(pushData, jsonObj, type);
			break;
		}
	}

}
